// setupProxy.js
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-env node */
const { createProxyMiddleware } = require('http-proxy-middleware');
// http://101.43.185.136:8090
// https://eleapi.greenacup.com
module.exports = function (app) {
    app.use(
        '/api',
        createProxyMiddleware({
            target: 'https://eleapi.greenacup.com/api',
            // target: 'https://api.earthcoin.club/api',
            changeOrigin: true,
        })
    );
};
